#{extends 'retailuser.html' /}
#{set selected:'members' /}

#{findMemberForm /}

<table>
    <thead>
        <tr><th>Name</th><th>Club</th><th>Available discounts</th></tr>
    </thead>
    <tbody>
    #{list items:members, as:'member'}
        <tr>
            <td>${member.name}</td><td>${member.club.userName}</td>
            <td>#{a @Discount.list(member.club.id)}Show available discounts#{/a}</tr>
        </td>
    #{/list}
    </tbody>
</table>